package com.woniu.apartment.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.woniu.apartment.mapper.ApartFacilityRefMapper;
import com.woniu.apartment.domain.ApartFacilityRef;
import com.woniu.apartment.service.IApartFacilityRefService;

/**
 * 公寓设施关联Service业务层处理
 * 
 * @author yy
 * @date 2023-04-03
 */
@Service
public class ApartFacilityRefServiceImpl implements IApartFacilityRefService 
{
    @Autowired
    private ApartFacilityRefMapper apartFacilityRefMapper;

    /**
     * 查询公寓设施关联
     * 
     * @param id 公寓设施关联主键
     * @return 公寓设施关联
     */
    @Override
    public ApartFacilityRef selectApartFacilityRefById(Long id)
    {
        return apartFacilityRefMapper.selectApartFacilityRefById(id);
    }

    /**
     * 查询公寓设施关联列表
     * 
     * @param apartFacilityRef 公寓设施关联
     * @return 公寓设施关联
     */
    @Override
    public List<ApartFacilityRef> selectApartFacilityRefList(ApartFacilityRef apartFacilityRef)
    {
        return apartFacilityRefMapper.selectApartFacilityRefList(apartFacilityRef);
    }

    /**
     * 新增公寓设施关联
     * 
     * @param apartFacilityRef 公寓设施关联
     * @return 结果
     */
    @Override
    public int insertApartFacilityRef(ApartFacilityRef apartFacilityRef)
    {
        return apartFacilityRefMapper.insertApartFacilityRef(apartFacilityRef);
    }

    /**
     * 修改公寓设施关联
     * 
     * @param apartFacilityRef 公寓设施关联
     * @return 结果
     */
    @Override
    public int updateApartFacilityRef(ApartFacilityRef apartFacilityRef)
    {
        return apartFacilityRefMapper.updateApartFacilityRef(apartFacilityRef);
    }

    /**
     * 批量删除公寓设施关联
     * 
     * @param ids 需要删除的公寓设施关联主键
     * @return 结果
     */
    @Override
    public int deleteApartFacilityRefByIds(Long[] ids)
    {
        return apartFacilityRefMapper.deleteApartFacilityRefByIds(ids);
    }

    /**
     * 删除公寓设施关联信息
     * 
     * @param id 公寓设施关联主键
     * @return 结果
     */
    @Override
    public int deleteApartFacilityRefById(Long id)
    {
        return apartFacilityRefMapper.deleteApartFacilityRefById(id);
    }
}
